﻿using System.Windows.Controls;

namespace WiFiChannelSpread
{
    /// <summary>
    /// Interaction logic for ChannelHeader.xaml
    /// </summary>
    public partial class ChannelHeader : UserControl
    {
        public int ChannelNumber { get; set; }

        public ChannelHeader(int channelNumber)
        {
            this.ChannelNumber = channelNumber;
            InitializeComponent();

            if (this.ChannelNumber <= 0 || this.ChannelNumber >= 14)
            {
                NumberLabel.Visibility = System.Windows.Visibility.Collapsed;
            }
        }
    }
}
